import objbase from "./ObjectBase.js"
let companybase = function(){};
companybase.prototype=new objbase();
companybase.prototype.add=function(name,options){
    this[name]={
        value:options.value||"",
        name:options.name||"",
        checked:options.checked||true,
        description:options.description||""
    }
  };
let base1= {
    mrid: {
        value:"",
        name:"标识",
        checked:true,
        description:""
    }, //标识
    name: {
        value:"",
        name:"名称",
        checked:true,
        description:""
    }, //名称
    pathname:  {
        value:"",
        name:"标准带路径全名",
        checked:true,
        description:""
    }, //标准带路径全名
    type:  {
        value:"",
        name:"断路器类型",
        checked:true,
        description:""
    }, //断路器类型
    inode:  {
        value:"",
        name:"物理连接节点1",
        checked:true,
        description:""
    }, //物理连接节点1
    jnode:  {
        value:"",
        name:"物理连接节点2",
        checked:true,
        description:""
    }, //物理连接节点2
    substation:  {
        value:"",
        name:"所属厂站",
        checked:true,
        description:""
    }, //所属厂站
    basevoltage:  {
        value:"",
        name:"所属电压类型",
        checked:true,
        description:""
    }, //所属电压类型
    voltagelevel: {
        value:"",
        name:"所属电压等级",
        checked:true,
        description:""
    }, //所属电压等级
    bay:  {
        value:"",
        name:"所属间隔标识",
        checked:true,
        description:""
    }, //所属间隔标识
    feeder:  {
        value:"",
        name:"所属馈线标识",
        checked:true,
        description:""
    }, //所属馈线标识
    status:  {
        value:"",
        name:"状态",
        checked:true,
        description:""
    }, //状态@number
    mvarating:  {
        value:"",
        name:"遮断容量",
        checked:true,
        description:""
    }, //遮断容量
    regionid:  {
        value:"",
        name:"区域id",
        checked:true,
        description:""
    }, //区域id
    normalstatus:  {
        value:"",
        name:"正常状态",
        checked:true,
        description:""
    }, //正常状态
    typecode: {
        value:"",
        name:"类型编码",
        checked:true,
        description:""
    }, //类型编码
    engcode: {
        value:"",
        name:"英文编码",
        checked:true,
        description:""
    }, //英文编码
    p:  {
        value:"",
        name:"有功",
        checked:true,
        description:""
    }, //有功
    q:  {
        value:"",
        name:"无功",
        checked:true,
        description:""
    }, //无功
    i:  {
        value:"",
        name:"电流",
        checked:true,
        description:""
    }, //电流
    la:  {
        value:"",
        name:"A相电流",
        checked:true,
        description:""
    }, //A相电流
    lb:  {
        value:"",
        name:"B相电流",
        checked:true,
        description:""
    }, //B相电流
    lc:  {
        value:"",
        name:"C相电流",
        checked:true,
        description:""
    }, //C相电流
    pf:  {
        value:"",
        name:"功率因素",
        checked:true,
        description:""
    } //功率因素
  }
let base =new companybase();
for (let key in base1){
    base.add(key,base1[key])
}
export default base